﻿package mortal.game.view.guild.otherpanel
{
    import com.mui.utils.*;
    import extend.language.*;
    import mortal.component.window.*;
    import mortal.game.view.guild.tabpanel.*;
    import mortal.mvc.interfaces.*;

    public class GuildFindTalentPanel extends BaseWindow
    {
        private var _curPanel:GuildBasePanel = null;
        public var _curGuildID:int = 0;
        private static var _instance:GuildFindTalentPanel = null;

        public function GuildFindTalentPanel(param1:ILayer = null, param2:int = 0)
        {
            super(param1);
            setSize(720, 465);
            title = "" + Language.getString(71172);
            this._curGuildID = param2;
            return;
        }// end function

        public function update() : void
        {
            if (this._curPanel.isLoadComplete)
            {
                this._curPanel.update();
            }
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._curPanel = UICompomentPool.getUICompoment(GuildMembersPanel, 1) as GuildMembersPanel;
            GuildMembersPanel(this._curPanel).listType = 1;
            addChild(this._curPanel);
            this._curPanel.x = -6;
            this._curPanel.y = -40;
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            if (this._curPanel)
            {
                this._curPanel.dispose(param1);
                this._curPanel = null;
            }
            return;
        }// end function

        public static function get instance() : GuildFindTalentPanel
        {
            if (!_instance)
            {
                _instance = new GuildFindTalentPanel;
            }
            return _instance;
        }// end function

    }
}
